package com.ihr360.mail.dto;

import com.ihr360.commons.model.entity.StringIdWithTime;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
*describe:
*   公司邮箱设置表
*@author Monkey
*@date  18-5-9
*/
@Entity
@Table(name = "tab_mail_setting")
public class MailSettingDto extends StringIdWithTime {

    /**
     * 公司id
     */
    @Column(length = 40,nullable = false)
    private String companyId;

    /**
     * 发信箱
     */
    @Column(length = 40,nullable = false)
    private String mailAddress;

    /**
     * 邮箱密码
     */
    @Column(length = 40,nullable = false)
    private String mailPassword;

    /**
     * SMTP服务器
     */
    @Column(length = 40,nullable = false)
    private String mailSmtp;

    /**
     * 是否使用SSL协议
     */
    @Column
    private Boolean mailIsSSL;

    /**
     * 非SSL默认25
     */
    @Column(length = 40,nullable = false)
    private String mailSmtpPort;

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getMailAddress() {
        return mailAddress;
    }

    public void setMailAddress(String mailAddress) {
        this.mailAddress = mailAddress;
    }

    public String getMailPassword() {
        return mailPassword;
    }

    public void setMailPassword(String mailPassword) {
        this.mailPassword = mailPassword;
    }

    public String getMailSmtp() {
        return mailSmtp;
    }

    public void setMailSmtp(String mailSmtp) {
        this.mailSmtp = mailSmtp;
    }

    public Boolean getMailIsSSL() {
        return mailIsSSL;
    }

    public void setMailIsSSL(Boolean mailIsSSL) {
        this.mailIsSSL = mailIsSSL;
    }

    public String getMailSmtpPort() {
        return mailSmtpPort;
    }

    public void setMailSmtpPor(String mailSmtpPor) {
        this.mailSmtpPort = mailSmtpPor;
    }
}
